http://www.WizBrother.com/
首页: 电信 联通控制面版 短消息工具箱我的状态系统提醒IMPK市场 安全退出

IMPK战网论坛 >> 我爱下载 >> 浏览: 【分享】WIN10兼容性解决方案之CnC-DDraw
工欲善其事,必先利其器——常用软件下载
发新帖子  回复贴子  发起投票 版主:无

页次: 转到第 [ 1 2 3 ] 页加入收藏
【分享】WIN10兼容性解决方案之CnC-DDraw
此人性别不详 等风来 离线


ASN区版主
等级:世界之石大殿
积分:116652
金币:106982
发贴:76522
捐赠:0
注册时间:2014-05-02
IP:*.*.*.*
         第(0)楼,发贴时间:21-01-31 11:41

【分享】WIN10兼容性解决方案之CnC-DDraw

这个补丁的名字是CnC-DDraw,GitHub下载地址请点击这里

==========下载我上传的程序文件请自行查毒==========

直接去CnCNet的GitHub也下载到这个程序,为了确保使用安全,如果使用我上传的文件请记得查毒!查毒!查毒!



本贴包含附件:
文件名:cnc-ddraw.zip
文件长度:157K
文件名类型: zip压缩文件
下载次数:690

本贴包含附件:
文件名:shader-package.zip
文件长度:253K
文件名类型: zip压缩文件
下载次数:297


最新发表的主题 | 最新参与的主题汇报违规贴 
此人性别不详 等风来 离线


ASN区版主
等级:世界之石大殿
积分:116652
金币:106982
发贴:76522
捐赠:0
注册时间:2014-05-02
IP:*.*.*.*
         第(1)楼,发贴时间:21-01-31 11:45

我简单说一下CnC-DDraw这个补丁的使用方法:

1. cnc-ddraw.zip 这个压缩包里面的所有文件,直接解压到D2安装目录即可。
2. 禁用兼容性的相关设置。
3. 注意事项:主窗口的D2Loader的运行参数千万不要加-w,窗口模式的可以修改ddraw.ini的参数windowed=true。
4. 运行游戏。


最新发表的主题 | 最新参与的主题汇报违规贴 
此人性别不详 等风来 离线


ASN区版主
等级:世界之石大殿
积分:116652
金币:106982
发贴:76522
捐赠:0
注册时间:2014-05-02
IP:*.*.*.*
         第(2)楼,发贴时间:21-01-31 11:46

补充:devmode=true出现鼠标复位的自行修复方法,在winapi_hook.c找到BOOL WINAPI fake_SetCursorPos(int X, int Y)添加 代码:
if (g_ddraw && !g_ddraw->locked && !g_ddraw->devmode)
return TRUE;


说明文件的中文翻译版本详见本帖的4楼和8楼,感谢IGXN。

cnc-ddraw
cnc-ddraw can fix compatibility issues in older games, such as black screen, bad performance, crashes or defective Alt+Tab.

Features
Supports Windows XP, Vista, 7, 8, 10 and Wine
GDI / OpenGL / Direct3D 9 renderer (With automatic renderer selection)
Upscaling via glsl shaders - https://imgur.com/a/kxsM1oY | https://imgur.com/a/wjrhpFV
Windowed Mode / Fullscreen Exclusive Mode / Windowed-Fullscreen Mode / Fullscreen-Stretched Exclusive Mode
Alt+Enter support to switch quickly between Fullscreen and Windowed mode
Automatically saves and restores window position/size/state
FPS Limiter
VSync
Automatic mouse sensitivity scaling
Preliminary libretro shader support - https://github.com/libretro/glsl-shaders
...

Instructions
Download cnc-ddraw.zip and extract it into your game folder
Disable all compatibility modes for all of the game executables
Start the game
Note: If you use cnc-ddraw with a game that got its own windowed mode built in then make sure you disable the games own windowed mode first. If you want to play in windowed mode then start the game once in fullscreen and then press Alt+Enter to enable the cnc-ddraw windowed mode (Or modify ddraw.ini without using Alt+Enter).

If the game starts but it doesn't work perfectly then open ddraw.ini and search for Compatibility settings, one of the settings will usually fix the problem.

Most common compatibility settings are the following 3:

noactivateapp - Set this to true if there are issues on Alt+Tab.
handlemouse - Set this to false if your cursor is invisible at some places in the game.
maxgameticks - Set this to 60 if the game is running too fast or if it's flickering. If it still doesn't work, try a lower value.
If the game doesn't start at all or it's crashing, then please generate a debug log file and upload it.

Hotkeys
[Alt] + [Enter] = Switch between windowed and fullscreen mode
[Ctrl] + [Tab] = Unlock cursor
[Right Alt] + [Right Ctrl] = Unlock cursor
Supported Games
Command & Conquer Gold
Command & Conquer: Red Alert
Command & Conquer: Tiberian Sun
Command & Conquer: Red Alert 2
Carmageddon
Carmageddon 2
Warcraft 2
StarCraft
Diablo
Diablo 2
Age of Empires
Age of Empires II
Theme Hospital
Populous: The Beginning
Outlaws
Dungeon Keeper
Dark Reign: The Future of War
Star Wars: Galactic Battlegrounds
Atomic Bomberman
Dune 2000
Oddworld: Abe's Oddysee
Commandos
Red Baron 3D
F-16 Multirole Fighter
F-22 Raptor
Nox
...
There are a lot more games supported but I don't usually update the list, just give it a try and if it doesn't work then check the instructions above.

[ 本贴由 等风来 在 02-26 10:33 编辑过. ]


最新发表的主题 | 最新参与的主题汇报违规贴 
此人性别不详 impk188 离线


等级:亚瑞特之巅
积分:10061
金币:23851
发贴:10348
捐赠:0
注册时间:2020-02-27
IP:*.*.*.*
         第(3)楼,发贴时间:21-01-31 22:56

我顶~~~多谢风大~~~~~~~~~~
虽然没用WIN10的系统~~~~~~~


最新发表的主题 | 最新参与的主题汇报违规贴 
此人性别不详 IGXN 离线


等级:群魔堡垒
积分:1340
金币:6110
发贴:1490
捐赠:0
注册时间:2017-02-25
IP:*.*.*.*
         第(4)楼,发贴时间:21-01-31 23:59


注意,楼上的附件是老版本的,新版本(4.4.6.0)的下载链接:

http://impk.cc/ShowTopic-8586211-16.php




-----------------------------------------------------------------------


帮你翻译了~~~~~


cnc-ddraw可以修复老游戏的兼容性问题,例如:黑屏,卡顿,崩溃,以及Alt+Tab无效。

特性

   支持Windows XP, Vista, 7, 8, 10 和 Wine
   GDI / OpenGL / Direct3D 9 渲染器(自动选择渲染器)
   通过glsl着色器缩放画面 - https://imgur.com/a/kxsM1oY | https://imgur.com/a/wjrhpFV (图片贴在10楼了)
   窗口模式/全屏独占模式/窗口全屏模式/全屏拉伸模式
   Alt+Enter快速切换全屏以及窗口模式
   自动保存窗口位置/尺寸/状态
   帧数限制
   垂直同步
   自动调整鼠标灵敏度
   初步的libretro着色器支持 - https://github.com/libretro/glsl-shaders
   ...


使用说明

   下载cnc-ddraw.zip并解压缩到你的游戏目录
   取消游戏exe文件原本设置的兼容模式
   运行游戏

注意:cnc-ddraw自带窗口模式,如果游戏本身也有窗口模式,需要将其关闭。cnc-ddraw自带的窗口模式可以通过Alt+Enter切换(或者也可以修改ddraw.ini)

如果游戏可以启动,但是有问题,可以打开ddraw.ini,尝试修改其中的兼容性设置,通常能够解决问题。

常用的兼用性设置有以下3项:

   noactivateapp - 如果Alt+Tab有问题,把此项设置为true
   handlemouse - 如果鼠标在游戏的某些区域消失,把此项设置为false
   maxgameticks - 如果游戏加速或者闪屏,把此项设置为60。如果还是不行,尝试设置成更低的数值。

如果游戏无法运行或者崩溃,请生成并上传debug日志。


热键

   [Alt] + [Enter] = 切换窗口和全屏模式
   [Ctrl] + [Tab] = 解锁鼠标指针
   [右 Alt] + [右 Ctrl] = 解锁鼠标指针


支持的游戏

   命令与征服 黄金版 Command & Conquer Gold
   命令与征服:红色警戒 Command & Conquer: Red Alert
   命令与征服:泰伯利亚之日 Command & Conquer: Tiberian Sun
   命令与征服:红色警戒2 Command & Conquer: Red Alert 2
   死亡赛车 Carmageddon
   死亡赛车2 Carmageddon 2
   魔兽争霸2 Warcraft 2
   星际争霸 StarCraft
   暗黑破坏神 Diablo
   暗黑破坏神2 Diablo 2
   帝国时代 Age of Empires
   帝国时代2 Age of Empires II
   主题医院 Theme Hospital
   上帝也疯狂3开天辟地 Populous: The Beginning
   法外行 Outlaws
   地下城守护者 Dungeon Keeper
   黑暗王朝:未来战争 Dark Reign: The Future of War
   星球大战:银河战场 Star Wars: Galactic Battlegrounds
   炸弹人 Atomic Bomberman
   沙丘2000 Dune 2000
   阿比历险记 Oddworld: Abe's Oddysee
   盟军敢死队 Commandos
   红色男爵 3D Red Baron 3D
   F-16战斗机 F-16 Multirole Fighter
   F-22猛禽 F-22 Raptor
   救世传说 Nox
   ...

还有很多别的游戏也是支持的,上面的列表不怎么更新,可以自己尝试,有问题的话可以按照上面的说明修改设置。








[ 本贴由 IGXN 在 05-24 11:12 编辑过. ]


最新发表的主题 | 最新参与的主题汇报违规贴 
此人性别不详 flexi 离线


等级:萝格营地
积分:6
金币:4226
发贴:6
捐赠:0
注册时间:2008-11-15
IP:*.*.*.*
         第(5)楼,发贴时间:21-02-01 00:00

小白请教 相比兼容性模式 好在哪儿


最新发表的主题 | 最新参与的主题汇报违规贴 
此人性别不详 IGXN 离线


等级:群魔堡垒
积分:1340
金币:6110
发贴:1490
捐赠:0
注册时间:2017-02-25
IP:*.*.*.*
         第(6)楼,发贴时间:21-02-01 00:04

此外,我搜索了一下,CnC-DDraw的开发者是cncnet.org,是一个国外的老游戏对战平台~~~
和“cnc中国网通”毫无关系。。。。。


最新发表的主题 | 最新参与的主题汇报违规贴 
此人性别不详 IGXN 离线


等级:群魔堡垒
积分:1340
金币:6110
发贴:1490
捐赠:0
注册时间:2017-02-25
IP:*.*.*.*
         第(7)楼,发贴时间:21-02-01 00:07

 引用:
flexi在02-01 00:00说:
小白请教 相比兼容性模式 好在哪儿


不知道,没有试呢~~~~但是看介绍,似乎能自由缩放窗口大小了?


最新发表的主题 | 最新参与的主题汇报违规贴 
此人性别不详 IGXN 离线


等级:群魔堡垒
积分:1340
金币:6110
发贴:1490
捐赠:0
注册时间:2017-02-25
IP:*.*.*.*
         第(8)楼,发贴时间:21-02-01 08:02

; 设置文件也翻译了,可以直接替换原本的ddraw.ini~~~~~



; cnc-ddraw - https://github.com/CnCNet/cnc-ddraw - https://cncnet.org

[ddraw]
; ### 可选设置 Optional settings ###
; 根据自己的喜好设置下面的选项


; 拉伸到自定义分辨率,0 = 默认,width = 宽度,height = 高度
width=1300
height=975

; 覆盖上面的宽度/高度设置,始终拉伸到全屏
; 注: 如果同时使用'windowed=true',就是无边框窗口全屏模式
fullscreen=false

; 窗口模式
windowed=true

; 保持宽高比 (需要 'handlemouse=true')
maintas=false

; 画面居中/整比缩放 (需要 'handlemouse=true')
boxing=false

; 真实渲染帧数 -1=显示器帧数,0=无限制,n=帧数
; 注: 不影响游戏运行速度,限制游戏运行速度使用'maxgameticks'
maxfps=0

; 垂直同步,解决画面撕裂问题 (需要 'renderer=auto/opengl/direct3d9')
; 注: vsync=true修复画面撕裂问题,但是会导致输入延迟
vsync=false

; 自动调整鼠标灵敏度 (需要 'handlemouse=true')
; 注: 只在开启画面拉伸设置时生效,会根据窗口尺寸调整鼠标灵敏度
adjmouse=true

; 初步的libretro着色器支持 - (需要 'renderer=opengl') https://github.com/libretro/glsl-shaders
; 2x scaling example: https://imgur.com/a/kxsM1oY - 4x scaling example: https://imgur.com/a/wjrhpFV
shader=Shaders\interpolation\bilinear.glsl

; 窗口位置,-32000 =屏幕中央
posX=310
posY=40

; 渲染器,可选:auto, opengl, gdi, direct3d9(auto=先尝试 direct3d9/opengl,失败后gdi)
renderer=opengl

; 开发者模式(不锁定鼠标光标)
devmode=true

; 窗口模式显示边框
border=true

; 游戏退出和启动时,自动保存和载入窗口位置/尺寸/状态
; 可选: 可选: 0=禁用,1=全局(保存至ddraw区段),2=不同游戏分别保存到各自区段
savesettings=1

; 窗口模式下是否可以调整窗口尺寸
resizeable=true

; 启用C&C视频全屏补丁
vhack=false

; direct3d9渲染器开启线性插值(D3DTEXF_LINEAR)  (只支持16位色的游戏)
d3d9linear=true



; ### 兼容性设置 Compatibility settings ###
; 运行游戏遇到问题时尝试修改下面的选项


; 屏蔽WM_ACTIVATEAPP 和 WM_NCACTIVATE消息,解决alt+tab切换窗口的问题
noactivateapp=false

; 游戏每秒最大ticks设置,可选: -1 = 禁用, 0 = 模拟60帧垂直同步, 1-1000 = 自定义游戏速度
; 注: 可以用来修复游戏加速或闪屏
; 注: 通常使用以下数值: 60 / 30 / 25 / 20 / 15(低数值 = 减慢游戏运行速度)
maxgameticks=0

; 接管鼠标光标 (被需要: adjmouse/boxing/maintas)
; 注: 如果鼠标光标在游戏的某些区域内消失,尝试将此项设置为 'false'
handlemouse=true

; Windows API 钩子,可选: 0 = 禁用, 1 = IAT Hooking, 2 = Microsoft Detours, 3 = IAT+Detours Hooking (All Modules), 4 = IAT Hooking (All Modules)
; 注: 如果窗口模式或者缩放功能不能正常运行,尝试设置此项
; 注: 游戏有问题时,此项设置为'hook=2'通常能够解决问题,但是必须同时使用 'renderer=gdi'
hook=4

; 强制最小帧数,可选: 0 = 禁用, -1 = 使用 'maxfps' 的数值, 1-1000 = 自定义帧数
; 如果游戏的某些部分无法显示(例如菜单或载入动画),尝试将此项设置为较低的数值,如5或10
minfps=0

; 禁止direct3d9/opengl渲染器的全屏独占模式
; 注: 某些界面元素,如按钮/文本框/视频/等,无法显示时使用
nonexclusive=false

; 强制单CPU,修复崩溃/死机,*可能*影响性能
singlecpu=true



; ### 特定游戏设置 Game specific settings ###
; 以下设置会覆盖上面全部的设置,区段的名称=exe文件名


; 命令与征服:红色警戒 - CnCNet (Command & Conquer: Red Alert - CnCNet)
[ra95-spawn]
maxfps=125

; 命令与征服 黄金版 -CnCNet (Command & Conquer Gold - CnCNet)
[cnc95]
maxfps=125

; 死亡赛车 (Carmageddon)
[CARMA95]
renderer=opengl
noactivateapp=true
maxgameticks=60

; 死亡赛车 (Carmageddon)
[CARM95]
renderer=opengl
noactivateapp=true
maxgameticks=60

; 命令与征服 黄金版 (Command & Conquer Gold)
[C&C95]
maxgameticks=120
maxfps=60
minfps=-1

; 命令与征服: 红色警戒 (Command & Conquer: Red Alert)
[ra95]
maxgameticks=120
maxfps=60
minfps=-1

; 命令与征服:红色警戒 (Command & Conquer: Red Alert)
[ra95p]
maxfps=60
minfps=-1

; 帝国时代 (Age of Empires)
[empires]
handlemouse=false

; 帝国时代:罗马复兴 (Age of Empires: The Rise of Rome)
[empiresx]
handlemouse=false

; 帝国时代2 (Age of Empires II)
[EMPIRES2]
handlemouse=false

; 帝国时代2:征服者 (Age of Empires II: The Conquerors)
[age2_x1]
handlemouse=false

; 法外行 (Outlaws)
[olwin]
noactivateapp=true
maxgameticks=60
handlemouse=false
renderer=gdi

; 黑暗王朝:未来战争 (Dark Reign: The Future of War)
[DKReign]
maxgameticks=60

; 星球大战:银河战场 (Star Wars: Galactic Battlegrounds)
[battlegrounds]
handlemouse=false

; 星球大战:银河战场:克隆人战争 (Star Wars: Galactic Battlegrounds: Clone Campaigns)
[battlegrounds_x1]
handlemouse=false

; 死亡赛车2 (Carmageddon 2)
[Carma2_SW]
renderer=opengl
noactivateapp=true
maxgameticks=60

; 炸弹人 (Atomic Bomberman)
[BM]
maxgameticks=60

; 命令与征服:泰伯利亚之日/命令与征服:红色警戒2 (Command & Conquer: Tiberian Sun / Command & Conquer: Red Alert 2)
[game]
checkfile=.\blowfish.dll
noactivateapp=true
handlemouse=false
maxfps=60
minfps=-1

; 命令与征服:泰伯利亚之日 Demo (Command & Conquer: Tiberian Sun Demo)
[SUN]
noactivateapp=true
handlemouse=false
maxfps=60
minfps=-1

; 命令与征服:泰伯利亚之日 - CnCNet (Command & Conquer: Tiberian Sun - CnCNet)
[ts-spawn]
noactivateapp=true
handlemouse=false
maxfps=60
minfps=-1

; 命令与征服:红色警戒2 - XWIS (Command & Conquer: Red Alert 2 - XWIS)
[ra2]
noactivateapp=true
handlemouse=false
maxfps=60
minfps=-1

; 命令与征服:红色警戒2 - XWIS (Command & Conquer: Red Alert 2 - XWIS)
[Red Alert 2]
noactivateapp=true
handlemouse=false
maxfps=60
minfps=-1

; 命令与征服:红色警戒2:尤锏母闯� (Command & Conquer: Red Alert 2: Yuri's Revenge)
[gamemd]
noactivateapp=true
handlemouse=false
maxfps=60
minfps=-1

; 命令与征服:红色警戒2:尤里的复仇 - ?ModExe? (Command & Conquer: Red Alert 2: Yuri's Revenge - ?ModExe?)
[ra2md]
noactivateapp=true
handlemouse=false
maxfps=60
minfps=-1

; 命令与征服:红色警戒2:尤里的复仇 - CnCNet  (Command & Conquer: Red Alert 2: Yuri's Revenge - CnCNet)
[gamemd-spawn]
noactivateapp=true
handlemouse=false
maxfps=60
minfps=-1

; 命令与征服:红色警戒2:尤里的复仇 - XWIS (Command & Conquer: Red Alert 2: Yuri's Revenge - XWIS)
[Yuri's Revenge]
noactivateapp=true
handlemouse=false
maxfps=60
minfps=-1

; 烈火战车 (Twisted Metal)
[TWISTED]
renderer=opengl
nonexclusive=true
maxgameticks=25
minfps=5

; 烈火战车2 (Twisted Metal 2)
[Tm2]
renderer=opengl
nonexclusive=true
maxgameticks=60
handlemouse=false
fixchildwindows=false

; 凯撒大帝3 (Caesar III)
[c3]
handlemouse=false
sierrahack=true

; 法老王 (Pharaoh)
[Pharaoh]
handlemouse=false
sierrahack=true

; 宙斯:众神之王 (Master of Olympus - Zeus)
[Zeus]
handlemouse=false
sierrahack=true
renderer=gdi
hook=2

; 地下城守护者2 (Dungeon Keeper 2)
[DKII]
maxgameticks=60
noactivateapp=true
dk2hack=true

; 运输大亨 (Chris Sawyer's Locomotion)
[LOCO]
handlemouse=false

; 奇迹时代 (Age of Wonders)
[AoWSM]
windowed=true
fullscreen=false
renderer=gdi
hook=2

; 奇迹时代2 (Age of Wonders 2)
[AoW2]
windowed=true
fullscreen=false
renderer=gdi
hook=2

; 要塞:十字军东征 (HD Stronghold Crusader HDD)
[Stronghold Crusader]
handlemouse=false

; 要塞:十字军东征增强版 (HD Stronghold Crusader Extreme HD)
[Stronghold_Crusader_Extreme]
handlemouse=false







///////////////////////////////////////////////////////////////////

更新:官方4.4.6.0

http://impk.cc/ShowTopic-8586211-16.php?type=dyn


[ 本贴由 IGXN 在 01-01 18:42 编辑过. ]


最新发表的主题 | 最新参与的主题汇报违规贴 
此人性别不详 等风来 离线


ASN区版主
等级:世界之石大殿
积分:116652
金币:106982
发贴:76522
捐赠:0
注册时间:2014-05-02
IP:*.*.*.*
         第(9)楼,发贴时间:21-02-01 08:09

 引用:
IGXN在01-31 23:59说:
帮你翻译了~~~~~


cnc-ddraw可以修复老游戏的兼容性问题,例如:黑屏,卡顿,崩溃,以及Alt+Tab无效。

特性

   支持Windows XP, Vista, 7, 8, 10 和 Wine
   GDI / OpenGL / Direct3D 9 渲染器(自......

给你点个赞 👍



Elegance is the only beauty that never fades.
优雅是唯一不会褪色的美。      ——赫本


最新发表的主题 | 最新参与的主题汇报违规贴 
页次: 转到第 [ 1 2 3 ] 页加入收藏
IMPK战网论坛 >> 我爱下载 >> 浏览: 【分享】WIN10兼容性解决方案之CnC-DDraw
快速回复
<b>粗体字</b><i>斜体字<i><u>下划线</u>对齐方式插入列表插入超级链接插入图片插入Flash插入引用插入代码飞行字移动字播放realplay文件播放Media Player文件    >>> IMPK图床 <<<


系统时间:08-06 15:13,页面执行时间:0.0227s
[京ICP备12045407号-1]
FBB Beta 0.7.29, build1023
Powered by fantiyu, 2002-2003

IP地址位置数据由纯真CZ88提供支持